<template>
  <div>
    <table cellpadding="0" cellspacing="0" class="recepit_table2">
      <tbody>
        <tr>
          <td class="tit">单号</td>
          <td>{{ receiptsDetail.code || '' }}</td>
          <td class="tit"> 报损位置 </td>
          <td>{{ receiptsDetail.location_name || '' }}</td>
          <td class="tit">报损类型</td>
           <td>{{ receiptsDetail.from_name || '' }}</td>
          <td class="tit">报损原因</td>
          <td>{{receiptsDetail.loss_cause_name}}</td>
        </tr>
        <tr>
          <td class="tit">总数量</td>
          <td>{{receiptsDetail.total_num }}</td>
          <td class="tit">总金重（g)</td>
          <td>{{ receiptsDetail.total_gold_weight || '' }}</td>
          <td class="tit">总件重（g)</td>
          <td>{{ receiptsDetail.piece_weight || '' }}</td>
          <td class="tit">总标价</td>
          <td>{{ receiptsDetail.total_sticker_price || '' }}</td>
        </tr>
        <tr>
          <td class="tit">总成本</td>
          <td>{{ receiptsDetail.total_cost || '' }}</td>
          <td class="tit">备注</td>
          <td>{{ receiptsDetail.note || '' }}</td>
          <td class="tit">制单人</td>
          <td>{{ receiptsDetail.make_user_name || '' }}</td>
          <td class="tit">业务日期</td>
          <td>{{ receiptsDetail.business_time || '/' }}</td>
        </tr>
        <tr>
          <td class="tit">审核人</td>
          <td>{{ receiptsDetail.verify_user_name || '' }}</td>
          <td class="tit">审核状态</td>
          <td class="ele-text-primary">{{ receiptsDetail.status_name || '' }}</td>
          <td class="tit" v-if="receiptsDetail.cause">拒绝原因</td>
          <td colspan="3" class="ele-text-danger" v-if="receiptsDetail.cause">{{ receiptsDetail.cause || '' }}</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script setup>
  import { ref, reactive, unref, onMounted } from 'vue';

  const props = defineProps({
    receiptsDetail: Object,
	isBaoyi:{
		type: Boolean,
		default: false
	}
  });
</script>

<style></style>
